//
//  ViewController.m
//  Wave
//
//  Created by admin on 15/7/4.
//  Copyright (c) 2015年 MLS. All rights reserved.
//

#import "ViewController.h"
#import "MSWavaViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIButton * btn = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 200, 80)];
    [btn setTitle:@"摇一摇" forState:UIControlStateNormal];
    [btn setBackgroundColor:[UIColor lightGrayColor]];
    [btn addTarget:self action:@selector(pushMSWavaVC) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)pushMSWavaVC
{
    MSWavaViewController * MSWavaVC = [[MSWavaViewController alloc] init];
    MSWavaVC.title = @"摇一摇";
    [self.navigationController pushViewController:MSWavaVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
